'use strict';
export function setLocalStorage (key, value) {
  if (!window.localStorage) {
    return;
  }
  key = 'tqms_' + key;
  localStorage.setItem(key, value);
}
export function getLocalStorage (key) {
  if (!window.localStorage) {
    return;
  }
  key = 'tqms_' + key;
  return localStorage.getItem(key);
}
export function removeLocalStorage (key) {
  if (!window.localStorage) {
    return;
  }
  key = 'tqms_' + key;
  return localStorage.removeItem(key);
}
export function setSessionStorage (key, value) {
  if (!window.sessionStorage) {
    return;
  }
  key = 'tqms_' + key;
  sessionStorage.setItem(key, value);
}
export function getSessionStorage (key) {
  if (!window.sessionStorage) {
    return;
  }
  key = 'tqms_' + key;
  return sessionStorage.getItem(key);
}
export function removeSessionStorage (key) {
  if (!window.sessionStorage) {
    return;
  }
  key = 'tqms_' + key;
  return sessionStorage.removeItem(key);
}
